package com.tudouji.project.d3.domain;

import java.math.BigDecimal;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.tudouji.framework.aspectj.lang.annotation.Excel;
import com.tudouji.framework.web.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

/**
 * 平台订单中间对象 d3_to_sellform
 * 
 * @author tudouji
 * @date 2023-04-10
 */
public class D3ToSellform extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** $column.columnComment */
    private Long id;

    /** 店铺id:d3_shop表的id */
    @Excel(name = "店铺id:d3_shop表的id")
    private Long shopId;
    /** 订单id */
    @Excel(name = "订单编号")
    private String refOid;

    private String finishTime;
    private String orderTime;
    private String payTime;
    @Excel(name = "发货时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private String shippingTime;
    private String shippingTimeSync;

    private Long sellformId;
    private String sellformCode;

    /** d3店铺编码 */
    @Excel(name = "d3店铺编码")
    private String d3PosCode;

    /** d3订单表 Id */
    @Excel(name = "d3订单表 Id")
    private Long d3Orderid;

    /** d3订单明细表id */
    @Excel(name = "d3订单明细表id")
    private Long d3OrderItemid;

    /** d3订单明细表的sku */
    @Excel(name = "d3订单明细表的sku")
    private String d3OiRefskuid;

    /** d3订单明细表货品标题title */
    @Excel(name = "d3订单明细表货品标题title")
    private String d3OiTitle;

    /** d3订单明细表的商品规格 */
    @Excel(name = "d3订单明细表的商品规格")
    private String d3OiStandards;

    /** ERP系统spid */
    @Excel(name = "ERP系统spid")
    private Long spId;
    /**ERP物料所属大类**/
    private Integer productType;

    /** ERP系统spname */
    @Excel(name = "ERP系统spname")
    private String spName;

    /** ERP订单数量:d3订单明细数量*对应关系数量 */
    @Excel(name = "ERP订单数量:d3订单明细数量*对应关系数量")
    private Integer num;

    /** 单价: d3订单明细单价*对应关系单价/sum对应关系单价 */
    @Excel(name = "单价: d3订单明细单价*对应关系单价/sum对应关系单价")
    private BigDecimal price;

    /** 1 - 初始状态5 - 已生成sellform*/
    @Excel(name = "1 - 初始状态 5 - 已生成sellform ")
    private Integer status;

    private String logisticsSendFrom;//发货地址

    private BigDecimal amount;

    private Integer type;//产品类型

    public Integer getProductType() {
        return productType;
    }

    public void setProductType(Integer productType) {
        this.productType = productType;
    }

    public Integer getType() {
        return type;
    }

    public void setType(Integer type) {
        this.type = type;
    }

    public String getShippingTimeSync() {
        return shippingTimeSync;
    }

    public void setShippingTimeSync(String shippingTimeSync) {
        this.shippingTimeSync = shippingTimeSync;
    }

    public String getLogisticsSendFrom() {
        return logisticsSendFrom;
    }

    public void setLogisticsSendFrom(String logisticsSendFrom) {
        this.logisticsSendFrom = logisticsSendFrom;
    }

    public String getOrderTime() {
        return orderTime;
    }

    public void setOrderTime(String orderTime) {
        this.orderTime = orderTime;
    }

    public String getPayTime() {
        return payTime;
    }

    public void setPayTime(String payTime) {
        this.payTime = payTime;
    }

    public String getShippingTime() {
        return shippingTime;
    }

    public void setShippingTime(String shippingTime) {
        this.shippingTime = shippingTime;
    }

    public String getFinishTime() {
        return finishTime;
    }

    public void setFinishTime(String finishTime) {
        this.finishTime = finishTime;
    }

    public String getRefOid() {
        return refOid;
    }

    public void setRefOid(String refOid) {
        this.refOid = refOid;
    }

    public String getD3PosCode() {
        return d3PosCode;
    }

    public void setD3PosCode(String d3PosCode) {
        this.d3PosCode = d3PosCode;
    }

    public Long getSellformId() {
        return sellformId;
    }

    public void setSellformId(Long sellformId) {
        this.sellformId = sellformId;
    }

    public String getSellformCode() {
        return sellformCode;
    }

    public void setSellformCode(String sellformCode) {
        this.sellformCode = sellformCode;
    }

    public BigDecimal getAmount() {
        return amount;
    }

    public void setAmount(BigDecimal amount) {
        this.amount = amount;
    }

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setShopId(Long shopId) 
    {
        this.shopId = shopId;
    }

    public Long getShopId() 
    {
        return shopId;
    }
    public void setD3Orderid(Long d3Orderid)
    {
        this.d3Orderid = d3Orderid;
    }

    public Long getD3Orderid() 
    {
        return d3Orderid;
    }
    public void setD3OrderItemid(Long d3OrderItemid) 
    {
        this.d3OrderItemid = d3OrderItemid;
    }

    public Long getD3OrderItemid() 
    {
        return d3OrderItemid;
    }
    public void setD3OiRefskuid(String d3OiRefskuid) 
    {
        this.d3OiRefskuid = d3OiRefskuid;
    }

    public String getD3OiRefskuid() 
    {
        return d3OiRefskuid;
    }
    public void setD3OiTitle(String d3OiTitle) 
    {
        this.d3OiTitle = d3OiTitle;
    }

    public String getD3OiTitle() 
    {
        return d3OiTitle;
    }
    public void setD3OiStandards(String d3OiStandards) 
    {
        this.d3OiStandards = d3OiStandards;
    }

    public String getD3OiStandards() 
    {
        return d3OiStandards;
    }
    public void setSpId(Long spId) 
    {
        this.spId = spId;
    }

    public Long getSpId() 
    {
        return spId;
    }
    public void setSpName(String spName) 
    {
        this.spName = spName;
    }

    public String getSpName() 
    {
        return spName;
    }
    public void setNum(Integer num)
    {
        this.num = num;
    }

    public Integer getNum()
    {
        return num;
    }
    public void setPrice(BigDecimal price) 
    {
        this.price = price;
    }

    public BigDecimal getPrice() 
    {
        return price;
    }
    public void setStatus(Integer status) 
    {
        this.status = status;
    }

    public Integer getStatus() 
    {
        return status;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("shopId", getShopId())
            .append("d3Orderid", getD3Orderid())
            .append("d3OrderItemid", getD3OrderItemid())
            .append("d3OiRefskuid", getD3OiRefskuid())
            .append("d3OiTitle", getD3OiTitle())
            .append("d3OiStandards", getD3OiStandards())
            .append("spId", getSpId())
            .append("spName", getSpName())
            .append("num", getNum())
            .append("price", getPrice())
            .append("status", getStatus())
            .append("createTime", getCreateTime())
            .append("createBy", getCreateBy())
            .append("updateTime", getUpdateTime())
            .append("updateBy", getUpdateBy())
            .toString();
    }
}
